home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / util307.arc / DEFRAG.DOC < prev    next >
Text File  |  1987-03-04  |  5KB  |  124 lines

  1.              === D E F R A G ===
  2.  
  3.  
  4.  
  5. SYSTEM REQUIREMENTS
  6.  
  7. DEFRAG requires BASICA and PC-DOS 2.0.    It may work on other IBM-PC lookalikes,
  8. but other hardware/software combinations have not been tested.
  9.  
  10. OVERVIEW
  11.  
  12. DEFRAG was written to facilitate de-fragmenting PC-DOS diskettes.  If you are
  13. continuously modifying the files on a diskette it does not take long for the
  14. files on the diskette to become `fragmented', i. e., the files will consist of
  15. several groups of non-contiguous tracks and/or sectors.  This `fragmentation'
  16. of allocated space causes two problems: (1) Existing files take much longer to
  17. load because of excessive disk drive head movement across multiple tracks, and
  18. (2) New files get allocated in non-contiguous blocks because of `fragmented'
  19. free space on the diskette.  Thus, the fragmentation problem tends to become
  20. self propogating.
  21.  
  22. The DOS Manual recommends using COPY *.* to copy all the files on a fragmented
  23. diskette to a new one.    Doing this will `collect' all the non-contiguous parts
  24. of each file into one single block on the target (new) diskette.  However,
  25. COPY *.* copies the files in the order they appear in the source diskette
  26. directory -- and this may not be the order you want them in.  For instance,
  27. it is best to have frequently used files first on the diskette so they can be
  28. close to the diskette directory.  This way disk arm movement is minimized when
  29. these frequently used files are accessed.
  30.  
  31. DEFRAG overcomes this problem by providing the following capabilities:
  32.     1. Full screen display of all files in the directory sorted
  33.        alphabetically.
  34.     2. The ability to select, via the cursor control keys, any
  35.        or all of the files on the diskette in any order.
  36.     3. Automatic invocation of the DOS COPY utility to copy the
  37.        files in the order selected.
  38. In addition, DEFRAG allows:
  39.     4. The ability to delete selected files.
  40.     5. The ability to invoke any DOS command without leaving
  41.        the program.
  42.  
  43. METHOD OF OPERATION
  44.  
  45. DEFRAG uses the SHELL command to read directories, sort their contents, copy
  46. files, and invoke DOS commands.  It uses Function Key interrupt processing
  47. to read the various Function Keys and Cursor Control Keys.  These are all
  48. BASICA/DOS 2.0 capabilities.
  49.  
  50. When DEFRAG starts it requests input of three disk drive identifiers:
  51.     Work (RAM) drive: this is where DEFRAG will place the sorted
  52.               directory contents.  If you have RAM drive
  53.               DEFRAG will copy COMMAND.COM and SORT.EXE
  54.               there; this greatly speeds up execution.
  55.     Source drive: this is the drive containing the diskette that
  56.               DEFRAG is to copy from.  Nothing is written by
  57.               DEFRAG to this diskette.    Files selected for
  58.  
  59.  
  60. Peninsula Software - 28510 Blythewood Drive - Rancho Palos Verdes CA - 90274
  61.  
  62.  
  63.  
  64.              === D E F R A G ===
  65.  
  66.  
  67.               deletion are deleted from the source disk, not
  68.               the target disk.    Deletion normally takes place
  69.               after copying.
  70.     Target drive: this is the drive containing the diskette DEFRAG
  71.               is to copy to; i. e., files will be copied from
  72.               the source disk to the target disk.
  73.  
  74. The Function Keys are used as follows:
  75.  
  76. F1: select a file for copy or delete
  77. F2: restart DEFRAG allowing new source/target disk specifications
  78. F3: copy all selected files from source disk to target disk
  79. F7: delete all selected files from source disk
  80. F9: allow input of any DOS command, then perform it
  81. F10: end DEFRAG and return to BASIC (not DOS)
  82. Arrow (cursor control) keys: move cursor around display of files to allow
  83.                  individual files to be selected by F1
  84.  
  85. RESTRICTIONS/LIMITATIONS
  86.  
  87. 1. DEFRAG does not handle sub-directories.
  88. 2. DEFRAG assumes SORT.EXE and COMMAND.COM are on Drive a:
  89. 3. If you respond other than a: to the location of the work (RAM) drive,
  90.    DEFRAG copies SORT.EXE and COMMAND.COM there and then patches DOS to
  91.    use those files instead of the ones on drive a:.  This occurs only if
  92.    the work (RAM) drive is specified as being different from drive a:.
  93.    Note that DEFRAG will reset DOS to use COMMAND.COM on drive a: when
  94.    it ends, and it will delete all files it created from the work (RAM)
  95.    drive.  DEFRAG must be allowed to end normally, i. e., by F10, if this
  96.    `cleanup' is to occur.
  97. 4. F9 allows you to invoke any DOS command.  This can be dangerous.  You
  98.    cannot execute BASIC however, since only one copy of BASIC (actually
  99.    BASICA) can be functioning at one time.  Remember that any DOS command
  100.    you invoke will end up returning to DEFRAG, not to DOS, so don't do
  101.    things like deleting DEFRAG's work or PIPE files.
  102. 5. DEFRAG resets all 10 function keys when it ends.  These specifications
  103.    can be easily changed if you prefer different assignments.
  104.  
  105. COMMENTS/SUGGESTIONS
  106.  
  107. Please direct comments and/or suggestions to the author via the U. S. Mail
  108. or to the Compuserve user ID #72356,556.
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123. Peninsula Software - 28510 Blythewood Drive - Rancho Palos Verdes CA - 90274
  124.